package com.ttg.web.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.AdminBindRoleMapper;
import com.ttg.model.pojo.AdminBindRole;
import com.ttg.web.service.AdminBindRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/3/18 18:41
 */
@Service
public class AdminBindRoleServiceImpl extends ServiceImpl<AdminBindRoleMapper, AdminBindRole> implements AdminBindRoleService {
    @Override
    public List<AdminBindRole> selectList(Long admId) {
        LambdaQueryWrapper<AdminBindRole> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(AdminBindRole::getAbrAdmId, admId);
        return list(wrapper);
    }
}
